import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "../Public/SEntityId";
import { SPublicMiniPlayer } from "../Public/SPublicMiniPlayer";
type int = number;
//class SKillTransportReward
    
    export  class SKillTransportReward extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SKillTransportReward();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.toEntityId.__write(arg1);
            this.ownerMiniPlayer.__write(arg1);
            arg1.writeInt(this.transportColor);
            arg1.writeInt(this.rewardCoin);
            arg1.writeInt(this.rewardExp);
            arg1.writeInt(this.rewardItemCode);
            arg1.writeInt(this.rewardItemAmount);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.toEntityId = new SEntityId();
            this.toEntityId.__read(arg1);
            this.ownerMiniPlayer = new SPublicMiniPlayer();
            this.ownerMiniPlayer.__read(arg1);
            this.transportColor = arg1.readInt();
            this.rewardCoin = arg1.readInt();
            this.rewardExp = arg1.readInt();
            this.rewardItemCode = arg1.readInt();
            this.rewardItemAmount = arg1.readInt();
            return;
        }

        public /* const */_type: int=12070;

        public /* var */toEntityId: SEntityId;

        public /* var */ownerMiniPlayer: SPublicMiniPlayer;

        public /* var */transportColor: int;

        public /* var */rewardCoin: int;

        public /* var */rewardExp: int;

        public /* var */rewardItemCode: int;

        public /* var */rewardItemAmount: int;

        public static /* var */_regist: SKillTransportReward;
    }

            SKillTransportReward._regist = new SKillTransportReward(true);
        